package com.mine.modules.vm.common.config;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import com.hikvision.artemis.sdk.config.ArtemisConfig;

@Configuration
public class MonitorConfig {
	
	@Value("${monitor.host}")
	private String host;
	
	@Value("${monitor.appKey}")
	private String appKey;
	
	@Value("${monitor.appSecret}")
	private String appSecret;

    @PostConstruct
    public void init() {
    	ArtemisConfig.host = host;
		ArtemisConfig.appKey = appKey;
		ArtemisConfig.appSecret = appSecret;
    }

}
